package org.jeecg.modules.zcgl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.zcgl.entity.StatementAccount;

import java.util.Date;

/**
 * @Description: 对账单信息
 * @Author: jeecg-boot
 * @Date:   2021-01-15
 * @Version: V1.0
 */
public interface StatementAccountMapper extends BaseMapper<StatementAccount> {

    @Select("select * from zcgl_statement_account where DATE(date) = DATE(#{date}) and company_id = #{companyId} and del_flag = 0")
    StatementAccount selectByDateAndCompanyId(Date date, String companyId);

    void deletePhysicallyById(@Param("id") String id);
}
